﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace MDCAdminTool.Controls
{
    public partial class AddRegionWin : Window
    {
        public string RegionName 
        {
            get { return tbRegionName.Text; }
        }
        public bool? EvictionOn
        {
            get { return cbEvictionOn.IsChecked; }
        }

        public bool IsSave
        {
            get { return _IsSave; }
            private set { _IsSave = value; }
        }

        private bool _IsSave;

        public AddRegionWin()
        {
            InitializeComponent();
        }

        private void Cancel_Click( object sender , RoutedEventArgs e )
        {
            IsSave = false;
            this.Close();
        }
        private void Save_Click( object sender , RoutedEventArgs e )
        {
            IsSave = true;
            this.Hide();
        }
    }
}
